package com.woniu.dao;

import com.woniu.pojo.PropertyManage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


import java.util.Date;
import java.util.List;

public interface PropertyManageMapper {

    List<PropertyManage> findByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    @Update("update property_manage set status = 1,pass_time=#{passTime} where id=#{id}")
    void editStatusById(@Param("id") Integer id, @Param("passTime") Date passTime);


    List<PropertyManage> findList(@Param("userName") String userName,@Param("status") Integer status);

    @Update("update property_manage set status = 2 ,pass_time=#{refuseTime}where id=#{id}")
    void refuse(@Param("id") Integer id,@Param("refuseTime") Date refuseTime);
}
